package org.example.sward.tooffer;

public class Offer13 {
    public static void main(String[] args) {

        Offer13 offer13 = new Offer13();
        int result = offer13.sums(13);
        System.out.println(result);
    }

    public int sums(int x){
        int s = 0;
        while(x != 0) {
            s += x % 10;
            x = x / 10;
        }
        return s;
    }

}
